home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / hard / drivr / IOBlix12Usr377.lha / Install Serial Module < prev    next >
Text File  |  1998-11-09  |  6KB  |  230 lines

  1. ;
  2. ; $VER: IOBlix1200 installation 1.4 (9.11.98)
  3. ;
  4. ; Copyright (c) 1998 Thore Böckelmann and RBM Computertechnik
  5. ;
  6.  
  7. ;****************************************************************************
  8. ;
  9. ; English texts
  10. ;
  11. (if (not (= @language "deutsch"))
  12.     (
  13.         (set #bad-kick      "You must have AmigaOS 2.0 (V37) or newer to be able to use the IOBlix1200 I/O board.")
  14.         (set #bad-cpu       "You must have at least an MC68020 to use the IOBlix1200 software.")
  15.         (set #nosermodule   (cat "You have no IOBlix1200 serial module installed! "
  16.                                  "Please install the module first, before you install the software!"))
  17.         (set #selectdevs    "\nWhere to install the device drivers?\n")
  18.         (set #selectl       "\nWhere to install the IOBlix-Handler?\n")
  19.         (set #selecttool    "\nWhere to install the additional tools?\n")
  20.         (set #copyserdev    "\nCopying ioblix12ser.device...\n")
  21.         (set #copyhandler   "\nCopying IOBlix-Handler...\n")
  22.         (set #copydosdriver "\nCopying DOSDrivers...\n")
  23.         (set #copytools     "\nCopying Tools...\n")
  24.         (set #createtest    "\nCreating \"Test_Board\" script...\n")
  25.         (set #ssmodify      "\nAdding some command to S:User-Startup...\n")
  26.         (set #toolsource    "C/english")
  27.         (set #nsdinfo       (cat "\n"
  28.                                  "\n"
  29.                                  "If don't want to use IOBlix' own drivers SERxx: and PARxx: "
  30.                                  "but the original drivers instead, then you also have to install the NSDPatch software!\n"
  31.                                  "\n"
  32.                                  "NSDPatch can be found in the drawer \"Goodies\""))
  33.     )
  34. )
  35.  
  36. ;****************************************************************************
  37. ;
  38. ; Deutsche Texte
  39. ;
  40. (if (= @language "deutsch")
  41.     (
  42.         (set #bad-kick      "Sie müssen AmigaOS 2.0 (V37) oder höher installieren, um die IOBlix1200-Karte zu benutzen.")
  43.         (set #bad-cpu       "Sie brauchen mindestens einen MC68020, um die IOBlix1200-Software zu benutzen.")
  44.         (set #nosermodule   (cat "Sie haben kein IOBlix1200 Seriell-Modul in Ihrem Rechner installiert! "
  45.                                  "Bitte bauen Sie erst das Modul ein, bevor Sie die Software installieren!"))
  46.         (set #selectdevs    "\nWohin sollen die Gerätetreiber kopiert werden?\n")
  47.         (set #selectl       "\nWohin soll der IOBlix-Handler kopiert werden?\n")
  48.         (set #selecttool    "\nWohin sollen die Zusatzprogramme kopiert werden?\n")
  49.         (set #copyserdev    "\nKopiere ioblix12ser.device...\n")
  50.         (set #copyhandler   "\nKopiere IOBlix-Handler...\n")
  51.         (set #copydosdriver "\nKopiere DOSDrivers...\n")
  52.         (set #copytools     "\nKopiere Zusatzprogramme...\n")
  53.         (set #createtest    "\nErstelle \"Test_Board\" Skript...\n")
  54.         (set #ssmodify      "\nFüge Befehle in S:User-Startup ein...\n")
  55.         (set #toolsource    "C/deutsch")
  56.         (set #nsdinfo       (cat "\n"
  57.                                  "\n"
  58.                                  "Wenn Sie statt der IOBlix-eigenen Treibern SERxx: und PARxx: "
  59.                                  "lieber weiterhin die originalen Treiber benutzen wollen, dann müssen Sie noch die NSDPatch-Software installieren!\n"
  60.                                  "\n"
  61.                                  "NSDPatch finden Sie in der Schublade \"Goodies\""))
  62.     )
  63. )
  64.  
  65. ;****************************************************************************
  66. ;
  67. ; Setup
  68. ;
  69.  
  70. (complete 0)
  71.  
  72. (if (< (/ (getversion) 65536) 37)
  73.     (abort #bad-kick)
  74. )
  75.  
  76. (if (patmatch "68000|68010" (database "cpu"))
  77.     (abort #bad-cpu)
  78. )
  79.  
  80. ;****************************************************************************
  81. ;
  82. ; Welcome
  83. ;
  84.  
  85. (welcome)
  86.  
  87. (complete 10)
  88.  
  89. ;****************************************************************************
  90. ;
  91. ; Check for IOBlix module
  92. ;
  93.  
  94. (run "IOBlix-Install:C/english/SetupIOBlix reinit" (safe))
  95. (if
  96.     (= 0
  97.         (run "IOBlix-Install:C/Look4IOBlix a1200 ser" (safe))
  98.     )
  99.     (abort #nosermodule)
  100. )
  101.  
  102. (complete 20)
  103.  
  104. ;****************************************************************************
  105. ;
  106. ; Setup directory
  107. ;
  108.  
  109. (set #destdevs
  110.     (askdir
  111.         (prompt #selectdevs)
  112.         (help @askdir-help)
  113.         (default "DEVS:")
  114.     )
  115. )
  116.  
  117. (set #destl
  118.     (askdir
  119.         (prompt #selectl)
  120.         (help @askdir-help)
  121.         (default "L:")
  122.     )
  123. )
  124.  
  125. (set #desttool
  126.     (askdir
  127.         (prompt #selecttool)
  128.         (help @askdir-help)
  129.         (default "SYS:IOBlix")
  130.         (newpath)
  131.     )
  132. )
  133.  
  134. (set @default-dest #desttool)
  135.  
  136. (complete 20)
  137.  
  138. (makedir #desttool
  139.     (prompt "")
  140.     (help @makedir-help)
  141.     (infos)
  142. )
  143.  
  144. (complete 30)
  145.  
  146. ;****************************************************************************
  147. ;
  148. ; Install devices
  149. ;
  150.  
  151. (copylib
  152.     (help @copylib-help)
  153.     (prompt #copyserdev)
  154.     (source "devs/ioblix12ser.device")
  155.     (dest #destdevs)
  156.     (confirm)
  157. )
  158.  
  159. (copylib
  160.     (help @copylib-help)
  161.     (prompt #copyhandler)
  162.     (source "l/IOBlix-Handler")
  163.     (dest #destl)
  164.     (confirm)
  165. )
  166.  
  167. (copyfiles
  168.     (help @copyfiles-help)
  169.     (prompt #copydosdriver)
  170.     (source "DEVS/DOSDrivers")
  171.     (choices "SER00" "SER01" "SER02" "SER03")
  172.     (dest "SYS:Storage/DOSDrivers")
  173.     (infos)
  174.     (confirm)
  175. )
  176.  
  177. (complete 40)
  178.  
  179. ;****************************************************************************
  180. ;
  181. ; Install tools
  182. ;
  183.  
  184. (copyfiles
  185.   (help @copyfiles-help)
  186.   (prompt #copytools)
  187.   (source #toolsource)
  188.   (choices "SetupIOBlix" "QueryIOBlix")
  189.   (dest #desttool)
  190.   (confirm)
  191. )
  192.  
  193. (startup "IOBlix I/O Board"
  194.   (help @startup-help)
  195.   (prompt #ssmodify)
  196.   (command (cat (tackon #desttool "SetupIOBlix") " a1200 ser >NIL:"))
  197. )
  198.  
  199. (complete 60)
  200.  
  201. (copyfiles
  202.   (help @copyfiles-help)
  203.   (prompt #createtest)
  204.   (dest #desttool)
  205.   (source "Test_Board")
  206.   (infos)
  207. )
  208.  
  209. (textfile
  210.   (dest (tackon #desttool "Test_Board"))
  211.   (prompt #createtest)
  212.   (help "")
  213.   (append (tackon #desttool "QueryIOBlix >t:queryioblix{$$}\n"))
  214.   (append "more t:queryioblix{$$}\n")
  215.   (append "delete t:queryioblix{$$} >nil:\n")
  216. )
  217.  
  218. (complete 80)
  219.  
  220. (message #nsdinfo)
  221.  
  222. ;****************************************************************************
  223. ;
  224. ; Exit
  225. ;
  226.  
  227. (complete 100)
  228. (exit)
  229.  
  230.